import axios from '../axios'

const users = {
    login(data) {
        return axios({
            url: '/users/login',
            method: 'post',
            data
        })
    },
    register(data) {
        return axios({
            url: '/users/register',
            method: 'post',
            data
        })

    },
    getUserInfo() {
        return axios({
            url: '/users/getUserInfo',
            method: 'get',
            // data
        })
    }
}
export default users